package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.Lottery;
import cn.wolfcode.trip.base.mapper.LotteryMapper;
import cn.wolfcode.trip.base.service.ILotteryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LotteryServiceImpl implements ILotteryService {
    @Autowired
    private LotteryMapper lotteryMapper;

    @Override
    public Integer getLottery(Long id) {
        return lotteryMapper.getLottery(id);
    }

    @Override
    public void update(Lottery entity) {
        lotteryMapper.update(entity);
    }
}
